package main

import (
	"fmt"
	"sync"
)

func main() {
	s := make(map[string]int)

	s["route"] = 66

	fmt.Println(s["route"])

	v := s["r2"]

	fmt.Println(v)

	ss := make(map[string]string)

	ss["ss"] = "ssvalue"

	fmt.Println(ss["ss"])

	//并发map
	var syncMap sync.Map
	syncMap.Store("one", 1)
	syncMap.Store("two", 2)
	fmt.Println(syncMap.Load("two"))
}
